package com.sunxueqi.project.system.vo;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;

//序列化时，如果是null则会忽略
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Router {

	/**
	 * 路由名字
	 */
	private String name;
	
	/**
	 * 路由地址
	 */
	private String path;
	
	/**
	 * 是否隐藏，当为true时该路由不会在侧边栏出现
	 */
	private Boolean hidden;
	
	/**
	 * 重定向地址，当设置为noRedirect时，该路由再面包屑导航中不可被点击
	 */
	private String redirect;
	
	/**
	 * 组件地址
	 */
	private String component;
	
	/**
	 * 当一个路由下面的children生命的路由大于1个时，自动会变成嵌套的模式 --例如组件页面
	 */
	private Boolean alwaysShow;
	
	/**
	 * 其他元素
	 */
	private Meta meta;
	
	/**
	 * 子路由
	 */
	private List<Router> children;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Boolean getHidden() {
		return hidden;
	}

	public void setHidden(Boolean hidden) {
		this.hidden = hidden;
	}

	public String getRedirect() {
		return redirect;
	}

	public void setRedirect(String redirect) {
		this.redirect = redirect;
	}

	public String getComponent() {
		return component;
	}

	public void setComponent(String component) {
		this.component = component;
	}

	public Boolean getAlwaysShow() {
		return alwaysShow;
	}

	public void setAlwaysShow(Boolean alwaysShow) {
		this.alwaysShow = alwaysShow;
	}

	public Meta getMeta() {
		return meta;
	}

	public void setMeta(Meta meta) {
		this.meta = meta;
	}

	public List<Router> getChildren() {
		return children;
	}

	public void setChildren(List<Router> children) {
		this.children = children;
	}
	
	
	
}
